package com.fare.taluo.core.domain.crawl;

import java.util.List;

import com.dayatang.domain.EntityRepository;
/**
 * 
 * @author lzl
 *
 */
public interface TaskAdapterEntityRepository extends EntityRepository{
	/**
	 * 删除一个配置
	 * @param tae
	 * @throws Exception
	 */
	@Deprecated
	public void deleteTaskAdapterEntity(TaskAdapterEntity tae) throws Exception;

	/**
	 * 保存或更新一个配置
	 * @param tae
	 * @throws Exception
	 */
	@Deprecated
	public void saveOrUpdateTaskAdapterEntity(TaskAdapterEntity tae) throws Exception;
	
	/**
	 * 保存或更新一个配置
	 * @param tae
	 * @throws Exception
	 */
	@Deprecated
	public void saveMorU(TaskAdapterEntity ftp) throws Exception;
	/**
	 * 获取一个配置
	 * @param id
	 * @return
	 * @throws Exception
	 */
	@Deprecated
	public TaskAdapterEntity findTaskAdapterEntity(long id) throws Exception;
	
	/**
	 通过条件返回配置列表
	 * @param sourceName 渠道名称
	 * @param adapterName 适配器名称
	 * @param adapterClass  适配器路径和类名
	 * @param isEnable   适配器状态
	 * @return
	 */
	@Deprecated
	public List<TaskAdapterEntity> findTaskAdapterByConsdions(String sourceId,String isEnable,String adapterName,String adapterClass);
	
	
	public List<TaskAdapterEntity> findTaskAdapterByConditions(Long sourceId,Integer isEnable,String adapterClassName)throws Exception;
	
	
	
	
}
